package com.dmpp.mes.controller;


import com.dmpp.mes.bean.ResponseData;
import com.dmpp.mes.parameterInfo.Category;
import com.dmpp.mes.service.CategoryService;
import com.dmpp.mes.service.SpringService;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@CrossOrigin
@RestController
@RequestMapping("Spring")
public class SpringController {
//弹簧
    @Autowired
    private SpringService service;


    @RequestMapping(value = "/FindAll", method = RequestMethod.POST)
    @ResponseBody
    public ResponseData findAll(Integer page, Integer pageSize) {
        PageHelper.startPage(page, pageSize);
        return service.findAll();
    }


}
